pcmanfm-1.3.2^20240821gitaa4860d6-1.fc42

List of Findings

Error: COMPILER_WARNING: [#def1]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_ref_accessible_at_point’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1275:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1275 |         obj_l = fm_desktop_find_accessible_for_item(FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(component), item);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1273|       item = hit_test(desktop, &it, x - x_pos, y - y_pos);
# 1274|       if (item)
# 1275|->         obj_l = fm_desktop_find_accessible_for_item(FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(component), item);
# 1276|       if (obj_l)
# 1277|           return g_object_ref(obj_l->data);

Error: COMPILER_WARNING: [#def2]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_add_selection’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1297:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1297 |     priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(selection);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                     
# 1295|   
# 1296|       desktop = FM_DESKTOP(widget);
# 1297|->     priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(selection);
# 1298|       item = g_list_nth_data(priv->items, i);
# 1299|       if (!item)

Error: COMPILER_WARNING: [#def3]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_ref_selection’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1328:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1328 |     priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(selection);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                     
# 1326|           return NULL;
# 1327|   
# 1328|->     priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(selection);
# 1329|       for (items = priv->items; items; items = items->next)
# 1330|       {

Error: COMPILER_WARNING: [#def4]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_get_selection_count’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1341:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1341 |     FmDesktopAccessiblePriv *priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(selection);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1339|   static gint fm_desktop_accessible_get_selection_count(AtkSelection *selection)
# 1340|   {
# 1341|->     FmDesktopAccessiblePriv *priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(selection);
# 1342|       FmDesktopItemAccessible *item;
# 1343|       GList *items;

Error: COMPILER_WARNING: [#def5]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_is_child_selected’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1358:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1358 |     FmDesktopAccessiblePriv *priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(selection);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1356|                                                           gint i)
# 1357|   {
# 1358|->     FmDesktopAccessiblePriv *priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(selection);
# 1359|       FmDesktopItemAccessible *item = g_list_nth_data(priv->items, i);
# 1360|   

Error: COMPILER_WARNING: [#def6]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_remove_selection’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1381:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1381 |     priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(selection);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                     
# 1379|       desktop = FM_DESKTOP(widget);
# 1380|   
# 1381|->     priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(selection);
# 1382|       for (items = priv->items; items; items = items->next)
# 1383|       {

Error: COMPILER_WARNING: [#def7]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_idle_do_action’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1427:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1427 |     priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(data);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                          
# 1425|           return FALSE;
# 1426|   
# 1427|->     priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(data);
# 1428|       priv->action_idle_handler = 0;
# 1429|       widget = gtk_accessible_get_widget(GTK_ACCESSIBLE(data));

Error: COMPILER_WARNING: [#def8]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_action_do_action’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1444:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1444 |     priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(action);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                        
# 1442|           return FALSE;
# 1443|   
# 1444|->     priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(action);
# 1445|       if (!priv->action_idle_handler)
# 1446|           priv->action_idle_handler = gdk_threads_add_idle(fm_desktop_accessible_idle_do_action, action);

Error: COMPILER_WARNING: [#def9]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_finalize’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1480:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1480 |     FmDesktopAccessiblePriv *priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(object);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1478|   static void fm_desktop_accessible_finalize(GObject *object)
# 1479|   {
# 1480|->     FmDesktopAccessiblePriv *priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(object);
# 1481|       FmDesktopItemAccessible *item;
# 1482|   

Error: COMPILER_WARNING: [#def10]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_get_n_children’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1503:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1503 |     FmDesktopAccessiblePriv *priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(accessible);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1501|   static gint fm_desktop_accessible_get_n_children(AtkObject *accessible)
# 1502|   {
# 1503|->     FmDesktopAccessiblePriv *priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(accessible);
# 1504|   
# 1505|       return g_list_length(priv->items);

Error: COMPILER_WARNING: [#def11]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_ref_child’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1517:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1517 |     priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(accessible);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                    
# 1515|           return NULL;
# 1516|   
# 1517|->     priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(accessible);
# 1518|       item = g_list_nth_data(priv->items, index);
# 1519|       if (!item)

Error: COMPILER_WARNING: [#def12]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_init’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1535:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1535 |     FmDesktopAccessiblePriv *priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(object);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1533|   static void fm_desktop_accessible_init(FmDesktopAccessible *object)
# 1534|   {
# 1535|->     FmDesktopAccessiblePriv *priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(object);
# 1536|   
# 1537|       priv->items = NULL;

Error: COMPILER_WARNING: [#def13]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_index’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1608:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1608 |     FmDesktopAccessiblePriv *priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(desktop_atk);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1606|   {
# 1607|       AtkObject *desktop_atk = gtk_widget_get_accessible(desktop);
# 1608|->     FmDesktopAccessiblePriv *priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(desktop_atk);
# 1609|   
# 1610|       return g_list_index(priv->items, item);

Error: COMPILER_WARNING: [#def14]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_item_deleted’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1624:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1624 |         priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(obj);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                       
# 1622|       if (obj != NULL && FM_IS_DESKTOP_ACCESSIBLE(obj))
# 1623|       {
# 1624|->         priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(obj);
# 1625|           item_atk_l = fm_desktop_find_accessible_for_item(priv, item);
# 1626|           g_return_if_fail(item_atk_l != NULL);

Error: COMPILER_WARNING: [#def15]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_item_added’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1647:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1647 |         priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(obj);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                       
# 1645|       if (obj != NULL && FM_IS_DESKTOP_ACCESSIBLE(obj))
# 1646|       {
# 1647|->         priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(obj);
# 1648|           item_atk = fm_desktop_item_accessible_new(desktop, item);
# 1649|           g_warn_if_fail(index <= g_list_length(priv->items));

Error: COMPILER_WARNING: [#def16]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_items_reordered’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1667:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1667 |         priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(obj);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                       
# 1665|       if (obj != NULL && FM_IS_DESKTOP_ACCESSIBLE(obj))
# 1666|       {
# 1667|->         priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(obj);
# 1668|           length = gtk_tree_model_iter_n_children(model, NULL);
# 1669|           g_return_if_fail(length == (gint)g_list_length(priv->items));

Error: COMPILER_WARNING: [#def17]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_item_selected_changed’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1690:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1690 |         priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(obj);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                       
# 1688|       if (obj != NULL && FM_IS_DESKTOP_ACCESSIBLE(obj))
# 1689|       {
# 1690|->         priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(obj);
# 1691|           item_atk_l = fm_desktop_find_accessible_for_item(priv, item);
# 1692|           g_return_if_fail(item_atk_l != NULL);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_item_selected_changed’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1693:50: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1691|           item_atk_l = fm_desktop_find_accessible_for_item(priv, item);
# 1692|           g_return_if_fail(item_atk_l != NULL);
# 1693|->         atk_object_notify_state_change(item_atk_l->data, ATK_STATE_SELECTED,
# 1694|                                          item->is_selected);
# 1695|       }

Error: COMPILER_WARNING: [#def19]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_focus_set’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1707:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1707 |         priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(obj);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                       
# 1705|       if (obj != NULL && FM_IS_DESKTOP_ACCESSIBLE(obj))
# 1706|       {
# 1707|->         priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(obj);
# 1708|           item_atk_l = fm_desktop_find_accessible_for_item(priv, item);
# 1709|           g_return_if_fail(item_atk_l != NULL);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_focus_set’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1710:50: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:2672:60: note: in definition of macro ‘_G_TYPE_CIT’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1180:42: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1181:42: note: in expansion of macro ‘FM_TYPE_DESKTOP_ACCESSIBLE’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1705:24: note: in expansion of macro ‘FM_IS_DESKTOP_ACCESSIBLE’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_focus_set’
# 1708|           item_atk_l = fm_desktop_find_accessible_for_item(priv, item);
# 1709|           g_return_if_fail(item_atk_l != NULL);
# 1710|->         atk_object_notify_state_change(item_atk_l->data, ATK_STATE_FOCUSED, TRUE);
# 1711|       }
# 1712|   }

Error: COMPILER_WARNING: [#def21]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_focus_unset’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1723:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1723 |         priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(obj);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                       
# 1721|       if (obj != NULL && FM_IS_DESKTOP_ACCESSIBLE(obj))
# 1722|       {
# 1723|->         priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(obj);
# 1724|           item_atk_l = fm_desktop_find_accessible_for_item(priv, item);
# 1725|           g_return_if_fail(item_atk_l != NULL);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_focus_unset’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1726:50: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/include/glib-2.0/gobject/gtype.h:2672:60: note: in definition of macro ‘_G_TYPE_CIT’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1180:42: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1181:42: note: in expansion of macro ‘FM_TYPE_DESKTOP_ACCESSIBLE’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1721:24: note: in expansion of macro ‘FM_IS_DESKTOP_ACCESSIBLE’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_focus_unset’
# 1724|           item_atk_l = fm_desktop_find_accessible_for_item(priv, item);
# 1725|           g_return_if_fail(item_atk_l != NULL);
# 1726|->         atk_object_notify_state_change(item_atk_l->data, ATK_STATE_FOCUSED, FALSE);
# 1727|       }
# 1728|   }

Error: COMPILER_WARNING: [#def23]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_accessible_model_removed’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:1739:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1739 |         priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(obj);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                       
# 1737|       if (obj != NULL && FM_IS_DESKTOP_ACCESSIBLE(obj))
# 1738|       {
# 1739|->         priv = FM_DESKTOP_ACCESSIBLE_GET_PRIVATE(obj);
# 1740|           while (priv->items)
# 1741|           {

Error: COMPILER_WARNING (CWE-252): [#def24]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘on_screen_size_changed’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:2709:21: warning[-Wunused-result]: ignoring return value of ‘g_list_remove’ declared with attribute ‘warn_unused_result’
# 2709 |                     g_list_remove(list_desktop_top, desktop);
#      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2707|                       list_desktop->data = fm_desktop_new(screen, mon_init);
# 2708|                   } else {
# 2709|->                     g_list_remove(list_desktop_top, desktop);
# 2710|                   }
# 2711|               }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘on_single_click_timeout.part.0’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:3673:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 3671|       {
# 3672|           _unselect_all(FM_FOLDER_VIEW(self));
# 3673|->         item->is_selected = TRUE;
# 3674|       }
# 3675|       else if (state == GDK_CONTROL_MASK) /* invert selection on the item */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:3677:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 3675|       else if (state == GDK_CONTROL_MASK) /* invert selection on the item */
# 3676|       {
# 3677|->         item->is_selected = ! item->is_selected;
# 3678|       }
# 3679|       else /* ignore other modifiers */

Error: COMPILER_WARNING (CWE-563): [#def27]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c: scope_hint: In function ‘fm_desktop_manager_init’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/desktop.c:5988:9: warning[-Wunused-variable]: unused variable ‘i’
# 5988 |     int i, n_mon, scr, mon;
#      |         ^
# 5986|   {
# 5987|       GdkDisplay * gdpy;
# 5988|->     int i, n_mon, scr, mon;
# 5989|       const char* desktop_path;
# 5990|   #if FM_CHECK_VERSION(1, 2, 0)

Error: GCC_ANALYZER_WARNING (CWE-479): [#def28]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/pcmanfm.c: scope_hint: In function ‘unix_signal_handler.part.0’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/pcmanfm.c:110:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkconfig.h:8: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:30: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/pcmanfm.c:28: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/pcmanfm.c:215:8: note: in expansion of macro ‘G_UNLIKELY’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/pcmanfm.c:110:9: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’
#  108|       if (write(signal_pipe[1], &sig_num, sizeof(sig_num)) != sizeof(sig_num)) {
#  109|           g_critical("cannot bounce the signal, stop");
#  110|->         exit(2);
#  111|       }
#  112|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def29]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/single-inst.c: scope_hint: In function ‘pass_args_to_existing_instance’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/single-inst.c:78:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘f’ where non-null expected
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/single-inst.c:36: included_from: Included from here.
/usr/include/stdio.h:357:12: note: argument 1 of ‘fprintf’ must be non-null
#   76|       char* cwd = g_get_current_dir();
#   77|       escaped = g_strescape(cwd, NULL);
#   78|->     fprintf(f, "%s\n", escaped);
#   79|       g_free(cwd);
#   80|       cwd = escaped;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/single-inst.c: scope_hint: In function ‘single_inst_init’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/single-inst.c:200:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*data.sock’
#  198|   
#  199|       /* try to connect to existing instance */
#  200|->     if(connect(data->sock, (struct sockaddr*)&addr, addr_len) == 0)
#  201|       {
#  202|           /* connected successfully, pass args in opt_entries to server process as argv and exit. */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/single-inst.c:222:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*data.sock’
#  220|       reuse = 1;
#  221|       ret = setsockopt( data->sock, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(reuse) );
#  222|->     if(ret || bind(data->sock, (struct sockaddr*)&addr, addr_len) == -1)
#  223|           return SINGLE_INST_ERROR;
#  224|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/single-inst.c:232:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*data.sock’
#  230|       g_io_channel_set_buffered(data->io_channel, FALSE);
#  231|   
#  232|->     if(listen(data->sock, 5) == -1)
#  233|           return SINGLE_INST_ERROR;
#  234|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/single-inst.c:235:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor
#  233|           return SINGLE_INST_ERROR;
#  234|   
#  235|->     data->io_watch = g_io_add_watch(data->io_channel,
#  236|                                       G_IO_IN|G_IO_ERR|G_IO_PRI|G_IO_HUP,
#  237|                                       (GIOFunc)on_server_socket_event, data);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def34]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/single-inst.c:235:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*data.sock’
#  233|           return SINGLE_INST_ERROR;
#  234|   
#  235|->     data->io_watch = g_io_add_watch(data->io_channel,
#  236|                                       G_IO_IN|G_IO_ERR|G_IO_PRI|G_IO_HUP,
#  237|                                       (GIOFunc)on_server_socket_event, data);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def35]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/single-inst.c: scope_hint: In function ‘on_server_socket_event’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/single-inst.c:376:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘g_io_channel_unix_get_fd(ioc)’
#  374|       {
#  375|           int client_sock = accept(g_io_channel_unix_get_fd(ioc), NULL, 0);
#  376|->         if(client_sock != -1)
#  377|           {
#  378|               SingleInstClient* client = g_slice_new0(SingleInstClient);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def36]
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/tab-page.c: scope_hint: In function ‘fm_tab_page_chdir_without_history’
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/tab-page.c:1111:21: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
/usr/include/libfm-1.0/fm-app-info.h:26: included_from: Included from here.
/usr/include/libfm-1.0/fm.h:28: included_from: Included from here.
/usr/include/libfm-1.0/fm-gtk.h:25: included_from: Included from here.
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/tab-page.c:26: included_from: Included from here.
pcmanfm-1.3.2_20240821gitaa4860d6-build/pcmanfm-1.3.2-20240821gitaa4860d6/pcmanfm/src/tab-page.c: scope_hint: In function ‘fm_tab_page_chdir_without_history’
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
# 1109|               infos[i].width = 0;
# 1110|   #endif
# 1111|->             delim = strchr(name, ':');
# 1112|               if (delim)
# 1113|               {

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-220.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namepcmanfm-1.3.2^20240821gitaa4860d6-1.fc42
store-results-to/tmp/tmpp_2_kmav/pcmanfm-1.3.2^20240821gitaa4860d6-1.fc42.tar.xz
time-created2024-11-13 02:14:22
time-finished2024-11-13 02:16:13
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpp_2_kmav/pcmanfm-1.3.2^20240821gitaa4860d6-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpp_2_kmav/pcmanfm-1.3.2^20240821gitaa4860d6-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9